# Author: Anthony Moulen <anthony_moulen@us.ibm.com>
# Hacked by Phil WIlloughby <philwill@uk.ibm.com>
# ebuild for AGN Dialer
# 

DESCRIPTION="Ebuild for the ATT AGN Dialer."
HOMEPAGE="http://w3.opensource.ibm.com"
SRC_URI="ftp://c4eb.linux.ibm.com/linux/source-images/c4eb/3.00/RPMS/agn-dialer-01.03.04-4_rh9.i386.rpm"

SLOT="0"
LICENSE="IBM Internal"
KEYWORDS="x86"

RDEPEND="app-arch/rpm
		net-dialup/ppp
		>=net-misc/mts-client-0.9.6b-r1"

src_unpack() {
	rpm2cpio ${DISTDIR}/${A} | cpio -i --make-directories

}

src_install() {
	cd ${WORKDIR}
        mkdir ${D}/etc
        cp etc/.attdial.path ${D}/etc
	mkdir ${D}/opt
	cp -R opt/attdial/ ${D}/opt/
	mkdir ${D}/usr
	mkdir ${D}/usr/bin
	dosym /opt/attdial/bin/attdial-license /usr/bin/attdial
}


